import * as qiniu from 'qiniu-js'
import request from "@/api/utils/request.js";

// 检查视频是否已点赞
export const checkVideoLike = async (videoId) => await request.get(`/vlike/check/${videoId}` )

// 点赞视频
export const likeVideo = async (videoId) => await request.post(`/vlike/like/${videoId}` )

// 取消点赞
export const cancelVideoLike = async (videoId) => await request.post(`/vlike/cancel/${videoId}` )

// export const getVideosByCategoryId = async (cId) => await request.get(`video/category/${cId}`)

